FROM openjdk:8-jdk-alpine
ARG PROJECT_GROUP
ARG PROJECT_NAME
ARG PROJECT_VERSION
ARG GIT_COMMIT
ARG IS_RELEASE
ARG JAR_NAME
RUN echo 'Asia/Shanghai' >/etc/timezone
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
LABEL group=${PROJECT_GROUP}
LABEL name=${PROJECT_NAME}
LABEL version=${PROJECT_VERSION}
LABEL git_commit=${GIT_COMMIT}
LABEL is_release=${IS_RELEASE}
MAINTAINER support@bestvike.com
COPY ${JAR_NAME} app.jar
EXPOSE 8080/tcp
VOLUME ["/log","/upload"]
ENTRYPOINT ["java","-jar","/app.jar"]
